package cn.zhyjohn.paysystem.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author JOHN
 * @description 微信配置 Bean
 * @date 14:53
 **/
@Component
@ConfigurationProperties(prefix = "paysystem.wechat")
@Data
public class WxPayBean {

    @ApiModelProperty(value = "appid")
    private String appId;

    @ApiModelProperty(value = "秘钥")
    private String appSecret;

    @ApiModelProperty(value = "商户id")
    private String mchId;

    @ApiModelProperty(value = "私钥")
    private String partnerKey;

    @ApiModelProperty(value = "证书路径")
    private String certPath;

    @ApiModelProperty(value = "回调地址")
    private String domain;
}
